<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../js/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../js/easyui/themes/icon.css">
		<script type="text/javascript" src="../../../js/jquery-1.11.1.js"></script>
		<script type="text/javascript" src="../../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../../js/easyui/locale/easyui-lang-zh_CN.js"></script>
	</head>

	<body>
		<select id="cc" class="easyui-combobox" name="dept" style="width:200px;">
			<option value="aa">aitem1</option>
			<option>wupengwei</option>
			<option>wang</option>
			<option>jiejie</option>
			<option>haha</option>
		</select>
		<script>
			$('#cc').combobox({
				filter: function(q, row) {
					var opts = $(this).combobox('options');
					return row[opts.textField].indexOf(q) >= 0;
				}
			});

			var str = "i3-4000M";
			console.log("原始字符串：", str);

			console.log("从索引为4的字符起一直到结束：", str.slice(0,4)); //3456789
		</script>
	</body>

</html>